package com.zxl.register.base;

import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

@Data
@Builder
public class Event implements Serializable{

    /**
     * 事件类型: register   get   find   heartbeat
     */
    private String type;


    /**
     * 多个参数用逗号分隔,入 find 1,2,3
     */
    private String args;


    /**
     * 服务的实例信息
     */
    private ServiceInstance instance;


    /**
     * 事件的接收时间
     */
    private long receivedTime;


}
